package com.allianz.webapps.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.HandlerMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping;
import org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter;
import org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter;
import org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter;
import org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
@SuppressWarnings("all")
@Controller//标记为spring的Controller对象
@RequestMapping("my")
public class HelloSpringMVCController {
	@RequestMapping("/first")//标记路径，/可写可省略，如省略，spring会自动加上一个
	public ModelAndView handleRequest() throws Exception {
		ModelAndView mav = new ModelAndView("hello");
		mav.addObject("msg","我的第4个springMVC注解案例");
		//mav.setViewName();
		return mav;
	}

	public void ttt(){
		HandlerMapping hm = null;
		BeanNameUrlHandlerMapping aa = null;
		RequestMappingHandlerMapping bb = null;
		DefaultAnnotationHandlerMapping cc = null;
		HttpRequestHandlerAdapter dd = null;
		SimpleControllerHandlerAdapter ee = null;
		AnnotationMethodHandlerAdapter ff = null;
		RequestMappingHandlerAdapter gg = null;
	}
}
